﻿
seajs.config({
    base: '../js/',
    alias: {
        'labjs': 'lib/LAB.min',
    }
});


define(function (require) {
    require('labjs');
    
        
    // 载入基础lib
    $LAB.script('../js/lib/jquery-1.6.1.min.js').wait()
        .script('../js/lib/jquery.mobile-1.0b2.js').wait()
        .script('../js/lib/underscore-min.js').wait()
        .script('../js/lib/backbone.min.js').wait(
            function () {
                $('#page').live('pagecreate',function(event){
                    var ProjectContainerView = require('views/projectcontainer.view');

                    projectContainerView = new ProjectContainerView(null);
                    
                    projectContainerView.render();
                    
                    $('#page').append(projectContainerView.el);
                
                });
                $('#page').page('destroy').page();
            }
        )
});
